home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / demo Source ƒ / demoDialog.r < prev    next >
Encoding:
Text File  |  1995-10-28  |  33.3 KB  |  1,275 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File    : demoDialog.r
  3. //    Date    : August 24, 1994
  4. //    Author    : Jim Stout
  5. //    Purpose    : resource descriptions for demoDialog.c
  6. //
  7. // -----------------------------------------------------------------------------
  8. #define REZ                                    // Think 6 - see jimsCDEF.h
  9. #define SystemSevenOrLater 1
  10.  
  11. #include <Types.r>
  12. #include "jimsCDEF.h"                        // variation codes for the CDEFs
  13.  
  14. include "demoCICN.rsrc";                    // a bunch of icons
  15.  
  16. #define BLACK    1
  17.  
  18. resource 'dctb' (1000, "Empty dctb", purgeable) { { } };
  19.  
  20. resource 'cctb' (10, purgeable) {                // set to 0 to color all controls
  21.     {
  22. #if BLACK
  23.         /* [1] */    cFrameColor, 0, 0, 0,
  24.         /* [2] */    cTextColor, 0, 0, 0,
  25.         /* [3] */    cBodyColor, -1,-1,-1,
  26. #else
  27.         /* [1] */    cFrameColor, 0, 0, 13107,
  28.         /* [2] */    cTextColor, 0, 0, 0 ,
  29.         /* [3] */    cBodyColor, -1,-1,-1,
  30. #endif
  31.         /* [4] */    cElevatorColor, 61166, 61166, 61166,
  32.         /* [5] */    cFillPatColor, 384, 384, 26214,
  33.         /* [6] */    cTingeLight, 52428, 52428, 65535,
  34.         /* [6] */    cTingeDark, 13107, 13107, 26214
  35.     }
  36. };
  37.  
  38. resource 'cctb' (128, purgeable) {                // TabPanel control colors
  39.     {
  40. #if BLACK
  41.         /* [1] */    cFrameColor, 0, 0, 0,
  42.         /* [2] */    cTextColor, 0, 0, 0,
  43. #else
  44.         /* [1] */    cFrameColor, 0, 0, 13107,
  45.         /* [2] */    cTextColor, 0, 0, 0, 
  46. #endif
  47.     }
  48. };
  49.  
  50. //----------------------------------------------------------------------------
  51. // Main dialog
  52. //----------------------------------------------------------------------------
  53.  
  54. resource 'DLOG' (128, "demoCDEF", purgeable) {
  55.     {46, 15, 340, 493},    movableDBoxProc,    invisible,    nogoAway,    0x0,    128,
  56.     "demoCDEF Dialog",
  57. #if SystemSevenOrLater
  58.     centerMainScreen
  59. #endif
  60. };
  61.  
  62. resource 'DITL' (128, "demoCDEF base", purgeable) {
  63.     {
  64.         /* [1] */    {261, 406, 281, 465},        Button        { enabled,    "OK"        },
  65.         /* [2] */    {261, 334, 281, 393},        Button         { enabled,    "Cancel"    },
  66.         /* [3] */    {4, 4, 36, 474},            Control        { enabled,    128            },
  67.         /* [4] */    {260, 277, 282, 299},        Control        { enabled,  150            },
  68.         /* [5] */    {260, 245, 282, 267},        Control        { enabled,  151            },
  69.         /* [6] */    {261, 40, 281, 99},            Button        { enabled,  "Disable"    }
  70.     }
  71. };
  72.  
  73. resource 'CNTL' (128, "Tab Panel Control", purgeable) {
  74.     {4, 4, 36, 474},                // control rect (keep height to 16*rows!)
  75.     1,                                // initial value = active tab
  76.     visible,
  77.     8,                                // max value (match to titles below)
  78.     244,                            // REAL height of control rect
  79.     16*tabPanel,                    // procID
  80.     0,
  81. //
  82. // Titles for each tab follow
  83. //
  84.     "3D Buttons\nPopUp Menus\nArrows\nDate & Time\nHorizontal Sliders"
  85.     "\nVertical Sliders\nProgress Bars\nPopup Extensions"
  86. };
  87.  
  88. resource 'CNTL' (150, purgeable) {
  89.     {260, 277, 282, 299},    
  90.     popupTitleLeftJust,            
  91.     visible,    
  92.     popupIconOnly+popupInsetFrame,        
  93.     135,    
  94.     16*popUp+popupFixedWidth,        
  95.     0,    
  96.     "Background:"
  97. };
  98.  
  99. resource 'CNTL' (151, purgeable) {
  100.     {260, 245, 282, 267},    
  101.     popupTitleLeftJust,            
  102.     visible,    
  103.     popupIconOnly+popupInsetFrame,        
  104.     151,    
  105.     16*popUp+popupFixedWidth,        
  106.     0,    
  107.     "Background:"
  108. };
  109.  
  110.  
  111. /*
  112. resource 'CNTL' (150, purgeable) {
  113.     {261, 120, 281, 299},    
  114.     popupTitleLeftJust,            
  115.     visible,    
  116.     90+popupInsetFrame,        
  117.     150,    
  118.     16*popUp+popupFixedWidth,        
  119.     0,    
  120.     "Background:"
  121. };
  122. */
  123.  
  124. resource 'MENU' (150) {
  125.     150, textMenuProc,    allEnabled,    enabled,    "Font sizes",
  126.     {
  127.         /* [1] */    "White",  noIcon, noKey, noMark, plain,
  128.         /* [2] */    "Gray A", noIcon, noKey, noMark, plain,
  129.         /* [2] */    "Gray C", noIcon, noKey, noMark, plain,
  130.         /* [3] */    "Gray D", noIcon, noKey, noMark, plain,
  131.         /* [4] */    "Gray E", noIcon, noKey, noMark, plain
  132.     }
  133. };
  134.  
  135. resource 'MENU' (151) {
  136.     151, textMenuProc,    allEnabled,    enabled,    "Window color",
  137.     {
  138.         /* [1] */    " ",             110, noKey, noMark, plain,
  139.         /* [2] */    " ",             116, noKey, noMark, plain,
  140.         /* [3] */    " ",             117, noKey, noMark, plain,
  141.         /* [4] */    " ",             118, noKey, noMark, plain
  142.     }
  143. };
  144.  
  145.  
  146. resource 'dctb' (128, purgeable) {
  147.     {
  148.         /* [1] */        wContentColor, 65535,65535,65535,        // white
  149.         /* [2] */        wFrameColor, 0, 0, 0,
  150.         /* [3] */        wTextColor, 0, 0, 0,
  151.         /* [4] */        wHiliteColor, 0, 0, 0,
  152.         /* [5] */        wTitleBarColor, 65535, 65535, 65535
  153.     }
  154. };
  155.  
  156. //----------------------------------------------------------------------------
  157. // panel 1 - BUTTONS - begins here
  158. //----------------------------------------------------------------------------
  159. #pragma mark 3D_BUTTONS_PANEL1
  160.  
  161. resource 'DITL' (129, "Buttons panel 1", purgeable) {
  162.     {
  163.  
  164. // Check boxes
  165.     
  166.         /* [1] */    {64, 22, 80, 142},        Control     {enabled,    129            },
  167.         /* [2] */    {84, 22, 100, 142},        Control     {enabled,    130            },
  168.         /* [3] */    {104, 22, 120, 142},    Control     {enabled,    131            },
  169.         /* [4] */    {124, 22, 140, 142},    Control     {enabled,    132            },
  170.         
  171. // Radio buttons
  172.         /* [5] */    {64, 172, 80, 292},        Control     {enabled,    133            },        
  173.         /* [6] */    {84, 172, 100, 292},    Control     {enabled,    134            },        
  174.         /* [7] */    {104, 172, 120, 292},    Control     {enabled,    135            },        
  175.         /* [8] */    {124, 172, 140, 292},    Control     {enabled,    136            },
  176.  
  177. // Tog buttons
  178.                 
  179.         /* [9] */    {64, 320, 80, 440},        Control     {enabled,    137            },        
  180.         /* [10] */    {84, 320, 100, 440},    Control     {enabled,    138            },        
  181.         /* [11] */    {104, 320, 120, 440},    Control     {enabled,    139            },        
  182.         /* [12] */    {124, 320, 140, 440},    Control     {enabled,    140            },        
  183.  
  184. // Push buttons
  185.  
  186.         /* [13] */    {192, 22, 212, 88},        Control     {enabled,    141            },    
  187.         /* [14] */    {180, 101, 220, 159},    Control        {enabled,    142            },    
  188.  
  189. // Font popups
  190.         
  191.         /* [15] */    {177, 186, 204, 343},    Control     {enabled,    143            },
  192.         /* [16] */    {182, 349, 198, 383},    StaticText     {disabled,    "Size:"        },
  193.         /* [17] */    {182, 388, 198, 416},    EditText     {enabled,    "12"        },
  194.         /* [18] */    {177, 422, 204, 453},    Control     {enabled,    144            },
  195.         /* [19] */    {208, 288, 228, 347},    Button         {enabled,    "Set"        },
  196.         
  197. // Group boxes
  198.  
  199.         /* [20] */    {48, 14, 64, 154},        Control     {enabled,    145            },
  200.         /* [21] */    {48, 164, 64, 304},        Control     {enabled,    146            },
  201.         /* [22] */    {48, 314, 64, 454},        Control     {enabled,    147            },
  202.         /* [23] */    {156, 14, 172, 172},    Control     {enabled,    148            },
  203.         /* [24] */    {156, 182, 172, 454},    Control     {enabled,    149            }
  204.     }
  205. };
  206.  
  207. // CheckBoxes
  208.  
  209. resource 'CNTL' (129, purgeable) {
  210.     {64, 22, 80, 142},        1,    visible,    1,    0,    
  211.     checkBoxProcUseWFont,    
  212.     0,
  213.     "Check Box 1"
  214. };
  215.  
  216. resource 'CNTL' (130, purgeable) {
  217.     {84, 22, 100, 142},        0,    visible,    1,    0,    
  218.     checkBoxProcUseWFont,    
  219.     0,
  220.     "Check Box 2"
  221. };
  222.  
  223. resource 'CNTL' (131, purgeable) {
  224.     {104, 22, 120, 142},        0,    visible,    1,    0,    
  225.     checkBoxProcUseWFont,    
  226.     0,
  227.     "Check Box 3"
  228. };
  229.  
  230. resource 'CNTL' (132, purgeable) {
  231.     {124, 172, 140, 292},        0,    visible,    1,    0,    
  232.     checkBoxProcUseWFont,    
  233.     0,
  234.     "Check Box 4"
  235. };
  236.  
  237. // Radio Buttons
  238.  
  239. resource 'CNTL' (133, purgeable) {
  240.     {64, 172, 80, 292},        1,    visible,    1,    0,    
  241.     radioButProcUseWFont,    
  242.     0,
  243.     "Radio Button 1"
  244. };
  245.  
  246. resource 'CNTL' (134, purgeable) {
  247.     {84, 172, 100, 292},    0,    visible,    1,    0,    
  248.     radioButProcUseWFont,    
  249.     0,
  250.     "Radio Button 2"
  251. };
  252.  
  253. resource 'CNTL' (135, purgeable) {
  254.     {104, 172, 120, 292},    0,    visible,    1,    0,    
  255.     radioButProcUseWFont,    
  256.     0,
  257.     "Radio Button 3"
  258. };
  259.  
  260. resource 'CNTL' (136, purgeable) {
  261.     {124, 172, 140, 292},    0,    visible,    1,    0,    
  262.     radioButProcUseWFont,    
  263.     0,
  264.     "Radio Button 4"
  265. };
  266.  
  267. // Tog Buttons
  268.  
  269. resource 'CNTL' (137, purgeable) {
  270.     {64, 320, 80, 440},        1,    visible,    1,    0,    
  271.     16*togCDEF+useWFont,    
  272.     0,
  273.     "Tog Button 1"
  274. };
  275.  
  276. resource 'CNTL' (138, purgeable) {
  277.     {84, 320, 100, 440},    0,    visible,    1,    0,    
  278.     16*togCDEF+useWFont,    
  279.     0,
  280.     "Tog Button 2"
  281. };
  282.  
  283. resource 'CNTL' (139, purgeable) {
  284.     {104, 320, 120, 440},    0,    visible,    1,    0,    
  285.     16*togCDEF+useWFont,    
  286.     0,
  287.     "Tog Button 3"
  288. };
  289.  
  290. resource 'CNTL' (140, purgeable) {
  291.     {124, 320, 140, 440},    0,    visible,    1,    0,    
  292.     16*togCDEF+useWFont,    
  293.     0,
  294.     "Tog Button 4"
  295. };
  296.  
  297. resource 'CNTL' (141, purgeable) {
  298.     {192, 22, 212, 88},    0,    visible,        1,    0,    
  299.     0+useWFont+useWBG,    
  300.     0,
  301.     "Disabled"
  302. };
  303.  
  304. resource 'CNTL' (142, purgeable) {
  305.     {180, 101, 220, 159},    0,    visible,    1,    0,    
  306.     0+useWFont+useWBG,    
  307.     0,
  308.     "Multi\nLine"
  309. };
  310.  
  311. // Change Font popups
  312.  
  313. resource 'CNTL' (143, purgeable) {
  314.     {177, 186, 204, 343},    
  315.     popupTitleRightJust,    
  316.     visible,    
  317.     45+popupInsetFrame,    
  318.     143,    
  319.     16*popUp+popupUseWFont+popupUseAddResMenu+popupFixedWidth,    
  320.     'FONT',                                            // refCon
  321.     "Font:"
  322. };
  323.  
  324. resource 'CNTL' (144, purgeable) {
  325.     {177, 422, 204, 453},    
  326.     popupTitleRightJust,    
  327.     visible,    
  328.     popupSymbolOnly+popupInsetFrame,    
  329.     144,    
  330.     16*popUp+useWFont,            
  331.     0,    
  332.     "popup Symbol only"
  333. };
  334.  
  335. resource 'MENU' (143) {
  336.     143, textMenuProc,    allEnabled,    enabled,    "empty Font menu",
  337.     {
  338.     }
  339. };
  340.  
  341. resource 'MENU' (144) {
  342.     144, textMenuProc,    allEnabled,    enabled,    "Font sizes",
  343.     {
  344.         /* [1] */    "9",  noIcon, noKey, noMark, plain,
  345.         /* [2] */    "10", noIcon, noKey, noMark, plain,
  346.         /* [3] */    "12", noIcon, noKey, noMark, plain,
  347.         /* [4] */    "14", noIcon, noKey, noMark, plain,
  348.         /* [5] */    "18", noIcon, noKey, noMark, plain
  349.     }
  350. };
  351. // Group Boxes
  352.  
  353. resource 'CNTL' (145, purgeable) {
  354.     {48, 14, 64, 154},        0,    visible,    100,    0,    
  355.     16*groupBox+useWFont,    
  356.     0,
  357.     "Check Boxes"
  358. };
  359.  
  360. resource 'CNTL' (146, purgeable) {
  361.     {48, 164, 64, 304},        0,    visible,    100,    0,    
  362.     16*groupBox+grayLine+useWFont,    
  363.     0,
  364.     "Radio Buttons"
  365. };
  366.  
  367. resource 'CNTL' (147, purgeable) {
  368.     {48, 314, 64, 454},        0,    visible,    100,    0,    
  369.     16*groupBox+ctl3D+useWFont,    
  370.     0,
  371.     "“Tog” Buttons"
  372. };
  373.  
  374. resource 'CNTL' (148, purgeable) {
  375.     {156, 14, 172, 172},    0,    visible,    81,        0,    
  376.     16*groupBox+insetBox+useWFont,    
  377.     0,
  378.     "Push Buttons"
  379. };
  380.  
  381. resource 'CNTL' (149, purgeable) {
  382.     {156, 182, 172, 454},    0,    visible,    81,        0,    
  383.     16*groupBox+7+useWFont,    
  384.     0,
  385.     "Change Font"
  386. };
  387.  
  388. #pragma mark POPUP_PANEL2
  389. //----------------------------------------------------------------------------
  390. // Panel 2 - POPUPS - begins here
  391. //----------------------------------------------------------------------------
  392.  
  393. resource 'DITL' (130, "Popup panel 2", purgeable) {
  394.     {
  395. // standard CDEF 63 style menus
  396.  
  397.         /* [1] */    {52, 20, 75, 320},        Control     {enabled,    1300    },
  398.         /* [2] */    {85, 20, 108, 320},        Control     {enabled,    1301    },
  399.         /* [3] */    {118, 20, 141, 320},    Control     {enabled,    1302    },
  400.         /* [4] */    {151, 10, 174, 320},    Control     {enabled,    1303    },
  401.         /* [5] */    {184, 80, 238, 330},    Control     {enabled,    1304    },
  402.         /* [6] */    {52, 325, 75, 460},        Control     {enabled,    1305    },
  403.         /* [7] */    {184, 340, 238, 460},    Control     {enabled,    1306    },
  404.     }
  405. };
  406.  
  407. resource 'CNTL' (1300, purgeable) {
  408.     {52, 20, 75, 320}, 
  409.     popupTitleRightJust,            
  410.     visible,    
  411.     popupBlackSymbol+120,        
  412.     256,    
  413.     16*popUp+popupFixedWidth+ctl3D,        
  414.     0,    
  415.     "Right:"
  416. };
  417. resource 'CNTL' (1301, purgeable) {
  418.     {85, 20, 108, 320},    
  419.     popupTitleLeftJust,            
  420.     visible,    
  421.     120,        
  422.     257,    
  423.     16*popUp+popupFixedWidth,        
  424.     0,    
  425.     "Left:"
  426. };
  427. resource 'CNTL' (1302, purgeable) {
  428.     {118, 20, 141, 320},    
  429.     popupTitleCenterJust+popupTitleOutline,    
  430.     visible,    
  431.     120,        
  432.     258,    
  433.     16*popUp+popupFixedWidth,        
  434.     0,    
  435.     "Center:"
  436. };
  437. resource 'CNTL' (1303, purgeable) {
  438.     {151, 10, 174, 320},    
  439.     popupTitleRightJust+popupTitleBold,    
  440.     visible,    
  441.     130,        
  442.     259,    
  443.     16*popUp,        
  444.     0,    
  445.     "Not Fixed Width:"
  446. };
  447. resource 'CNTL' (1304, purgeable) {
  448.     {184, 80, 238, 330},    
  449.     popupTitleRightJust+popupTitleItalic,    
  450.     visible,    
  451.     60,        
  452.     260,    
  453.     16*popUp,        
  454.     0,    
  455.     "Icons: "
  456. };
  457. resource 'CNTL' (1305, purgeable) {
  458.     {52, 325, 75, 460},    
  459.     popupTitleRightJust,    
  460.     visible,    
  461.     40,        
  462.     261,    
  463.     16*popUp+useWFont,        
  464.     0,    
  465.     "Popup:"
  466. };
  467. resource 'CNTL' (1306, purgeable) {
  468.     {184, 340, 238, 460},    
  469.     popupTitleRightJust,    
  470.     visible,    
  471.     44,        
  472.     262,    
  473.     16*popUp+useWFont,        
  474.     0,    
  475.     "Colors:"
  476. };
  477.  
  478. resource 'MENU' (256) {
  479.     256, textMenuProc,    allEnabled,    enabled,    "sample menu 1",
  480.     {
  481.         /* [1] */    "Styled Item Text",         noIcon, noKey, noMark, plain,
  482.         /* [2] */    "Red Italic",                 noIcon, noKey, noMark, italic,
  483.         /* [3] */    "Blue Outline",             noIcon, noKey, noMark, outline,
  484.         /* [4] */    "Green Bold",                 noIcon, noKey, noMark, bold,
  485.         /* [5] */    "Item Five is a long item", noIcon, noKey, noMark, plain
  486.     }
  487. };
  488. resource 'MENU' (257) {
  489.     257, textMenuProc,    0x7ffffffe,    enabled,    "sample menu 2",
  490.     {
  491.         /* [1] */    "Disabled Item",             noIcon, noKey, noMark, plain,
  492.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain
  493.     }
  494. };
  495. resource 'MENU' (258) {
  496.     258, textMenuProc,    allEnabled,    enabled,    "sample menu 3",
  497.     {
  498.         /* [1] */    "Colored Item Text",        noIcon, noKey, noMark, plain,
  499.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain,
  500.         /* [2] */    "Item 3    ",                     noIcon, noKey, noMark, plain,
  501.         /* [2] */    "Item 4    ",                     noIcon, noKey, noMark, plain
  502.     }
  503. };
  504. resource 'MENU' (259) {
  505.     259, textMenuProc,    allEnabled,    enabled,    "sample menu 4",
  506.     {
  507.         /* [1] */    "PopUp CDEF",                 noIcon, noKey, noMark, plain,
  508.         /* [2] */    "Item 2    ",                     noIcon, noKey, noMark, plain
  509.     }
  510. };
  511. resource 'MENU' (260) {
  512.     260, textMenuProc,    allEnabled,    enabled,    "sample menu 5",
  513.     {
  514.         /* [1] */    "Small cicn",                 44, noKey, noMark, plain,
  515.         /* [2] */    "Large cicn",                 45, noKey, noMark, plain,
  516.         /* [3] */    "Very Large cicn",            46,    noKey, noMark, plain,
  517.         /* [4] */    "B&W Icon",                    5,    noKey, noMark, plain,
  518.         /* [5] */    "B&W Icon (reduced)",        5,    "\0x1D", noMark, plain,
  519.         /* [6] */    "Small Icon (SICN)",        6,    "\0x1E", noMark, plain,
  520.         /* [7] */    "cicn (reduced)",            47,    "\0x1D", noMark, plain,
  521.     }
  522. };
  523. resource 'MENU' (261) {
  524.     261, textMenuProc,    allEnabled,    enabled,    "sample menu 6",
  525.     {
  526.         /* [1] */    "CDEF using",             noIcon, noKey, noMark, plain,
  527.         /* [2] */    "the Window",             noIcon, noKey, noMark, plain,
  528.         /* [2] */    "font",                     noIcon, noKey, noMark, plain
  529.     }
  530. };
  531. resource 'MENU' (262) {
  532.     262, textMenuProc,    allEnabled,    enabled,    "sample menu 7",
  533.     {
  534.         /* [1] */    " ",             101, noKey, noMark, plain,
  535.         /* [2] */    " ",             102, noKey, noMark, plain,
  536.         /* [3] */    " ",             103, noKey, noMark, plain,
  537.         /* [4] */    " ",             104, noKey, noMark, plain,
  538.         /* [5] */    " ",             105, noKey, noMark, plain,
  539.         /* [6] */    " ",             106, noKey, noMark, plain,
  540.         /* [7] */    " ",             107, noKey, noMark, plain,
  541.         /* [8] */    " ",             108, noKey, noMark, plain,
  542.         /* [9] */    " ",             109, noKey, noMark, plain,
  543.     }
  544. };
  545.  
  546. resource 'mctb' (256) {
  547.     {
  548.         /* [1] */        256, 0,
  549.         {
  550.             /* [1] */    0, 0, 0,
  551.             /* [2] */    0, 0, 0,
  552.             /* [3] */    0, 0, 0,
  553.             /* [4] */    37715, 65535, 65535
  554.         },
  555.         /* [2] */        256, 1,                    // item 1 colors
  556.         {
  557.             /* [1] */    0, 0, 0,
  558.             /* [2] */    39321, 0, 0,
  559.             /* [3] */    0, 0, 0,
  560.             /* [4] */    65535, 65535, 65535
  561.         },
  562.         /* [3] */        256, 2,                    // item 2 colors
  563.         {
  564.             /* [1] */    0, 0, 0,
  565.             /* [2] */    65535,0, 0,
  566.             /* [3] */    0, 0, 0,
  567.             /* [4] */    65535, 65535, 65535
  568.         },
  569.         /* [4] */        256, 3,
  570.         {
  571.             /* [1] */    0, 0, 0,
  572.             /* [2] */    0, 0, 65535,
  573.             /* [3] */    0, 0, 0,
  574.             /* [4] */    65535, 65535, 65535
  575.         },
  576.         /* [5] */        256, 4,
  577.         {
  578.             /* [1] */    0, 0, 0,
  579.             /* [2] */    0, 8738, 0,
  580.             /* [3] */    0, 0, 0,
  581.             /* [4] */    65535, 65535, 65535
  582.         }
  583.     }
  584. };
  585.  
  586. resource 'mctb' (258) {
  587.     {
  588.         /* [1] */        258, 0,                    // menu colors
  589.         {
  590.             /* [1] */    0, 0, 0,
  591.             /* [2] */    0, 0, 0,
  592.             /* [3] */    0, 0, 0,
  593.             /* [4] */    61166, 61166, 61166        // bg is gray
  594.         },
  595.         /* [2] */        258, 1,                    // item 1 colors
  596.         {
  597.             /* [1] */    0, 0, 0,
  598.             /* [2] */    13107, 0, 39321,
  599.             /* [3] */    0, 0, 0,
  600.             /* [4] */    65535, 65535, 65535
  601.         },
  602.         /* [3] */        258, 2,                    // item 2 colors
  603.         {
  604.             /* [1] */    0, 0, 0,
  605.             /* [2] */    65535,0, 0,
  606.             /* [3] */    0, 0, 0,
  607.             /* [4] */    65535, 65535, 65535
  608.         },
  609.         /* [4] */        258, 3,
  610.         {
  611.             /* [1] */    0, 0, 0,
  612.             /* [2] */    0, 0, 65535,
  613.             /* [3] */    0, 0, 0,
  614.             /* [4] */    65535, 65535, 65535
  615.         },
  616.         /* [5] */        258, 4,
  617.         {
  618.             /* [1] */    0, 0, 0,
  619.             /* [2] */    65535, 0, 65535,
  620.             /* [3] */    0, 0, 0,
  621.             /* [4] */    65535, 65535, 65535
  622.         }
  623.     }
  624. };
  625. //----------------------------------------------------------------------------
  626. // Panel 3 - SPINNERS - begins here
  627. //----------------------------------------------------------------------------
  628. #pragma mark SPINNERS_PANEL3
  629.  
  630. resource 'DITL' (131, "Spinner panel 3", purgeable) {
  631.     {        
  632.         /* [1] */    {75,  50, 95, 162},        Control        {    enabled,    1312    },
  633.         /* [2] */    {103, 50, 130, 166},    Control        {    enabled,    1313    },
  634.         /* [3] */    {138, 149, 158, 162},    Control        {    enabled,    1314    },
  635.         /* [4] */    {166, 50, 193, 176},    Control        {    enabled,    1315    },
  636.         
  637.         /* [5] */    {75,  230, 95, 342},    Control        {    enabled,    1316    },
  638.         /* [6] */    {103, 230, 130, 346},    Control        {    enabled,    1317    },
  639.         /* [7] */    {138, 329, 165, 346},    Control        {    enabled,    1318    },
  640.         /* [8] */    {173, 230, 193, 353},    Control        {    enabled,    1319    },
  641.         
  642.         /* [9] */    {140, 103, 155, 143},    EditText    {    enabled,    "0"        },
  643.         /* [10] */    {142, 287, 158, 324},    StaticText    {    disabled,    "0"        },
  644.     }
  645. };
  646.  
  647. resource 'CNTL' (1312, purgeable) {
  648.     {75,  50, 95, 162},    0,
  649.     visible,    100,        -100,    
  650.     16*spinner+ctl3D+useWFont,
  651.     10,                                                // refCon = increment
  652.     "Small 3D:"
  653. };
  654.  
  655. resource 'CNTL' (1313, purgeable) {
  656.     {103, 50, 130, 166},    0,
  657.     visible,    10,        0,    
  658.     16*spinner+ctl3D+useWFont+bigArrows,
  659.     0,    
  660.     "Large 3D:"
  661. };
  662.  
  663. resource 'CNTL' (1314, purgeable) {
  664.     {138, 149, 158, 162},    0,
  665.     visible,    999,        -999,    
  666.     16*spinner+ctl3D,                                        
  667.     $000F0005,                                    // refCon = DITL item and increment    
  668.     "Linked to edit item 9 with an increment of 5"
  669.     
  670. // remember, DITLBASE = 6, so 6+9 = 17 = 0x000F + 0005 for refCon
  671. };
  672.  
  673. resource 'CNTL' (1315, purgeable) {
  674.     {166, 50, 193, 176},    0,
  675.     visible,    100,        -100,    
  676.     16*spinner+ctl3D+useWFont+bigArrows+horizArrows,
  677.     0,    
  678.     "Horiz 3D:"
  679. };
  680.  
  681. resource 'CNTL' (1316, purgeable) {
  682.     {75,  230, 95, 342},    0,
  683.     visible,    100,        0,    
  684.     16*spinner+useWFont,
  685.     10,                                                // refCon = increment
  686.     "Small:"
  687. };
  688.  
  689. resource 'CNTL' (1317, purgeable) {
  690.     {103, 230, 130, 346},    0,
  691.     visible,    200,        -10,    
  692.     16*spinner+useWFont+bigArrows,
  693.     0,    
  694.     "Large:"
  695. };
  696.  
  697. // this spinner is going to adjust by 0.10 instead of 1.
  698. // This requires a special action proc for TrackControl
  699. // See trackSpin7 in demoCDEF.c and a bit of special
  700. // initialization (see restorePanel)
  701.  
  702. resource 'CNTL' (1318, purgeable) {
  703.     {138, 329, 165, 346},    0,
  704.     visible,    20,        -20,    
  705.     16*spinner+bigArrows,
  706.     0,    
  707.     "Fractional value"
  708. };
  709.  
  710. resource 'CNTL' (1319, purgeable) {
  711.     {173, 230, 193, 353},    0,
  712.     visible,    10,        -10,    
  713.     16*spinner+useWFont+horizArrows,
  714.     0,    
  715.     "Horiz:"
  716. };
  717.  
  718. //----------------------------------------------------------------------------
  719. // Panel 4 - DATETIME - begins here
  720. //----------------------------------------------------------------------------
  721. #pragma mark DATE_TIME_PANEL4
  722.  
  723. resource 'DITL' (132, "Date & Time panel 4", purgeable) {
  724.     {
  725.         /* [1] */    {47, 90, 67, 263},            Control     {enabled,    1321        },
  726.         /* [2] */    {72, 90, 92, 270},            Control     {enabled,    1322        },
  727.         /* [3] */    {97, 90, 117, 200},            Control     {enabled,    1323        },
  728.         /* [4] */    {122, 90, 142, 261},        Control     {enabled,    1324        },
  729.         /* [5] */    {147, 90, 184, 270},        Control     {enabled,    1325        },
  730.         /* [6] */    {192, 90, 229, 270},        Control     {enabled,    1326        },
  731.     
  732.         /* [7] */    {49, 10, 65, 55},            StaticText     {disabled,    "Variation:"},
  733.         /* [8] */    {49, 60, 65, 80},            StaticText     {disabled,    "0"        },
  734.         /* [9] */    {74, 60, 90, 80},            StaticText     {disabled,    "1"        },
  735.         /* [10] */    {99, 60, 115, 80},            StaticText     {disabled,    "2"        },
  736.         /* [11] */    {125, 60, 141, 80},            StaticText     {disabled,    "8"        },
  737.         /* [12] */    {154, 60, 170, 80},            StaticText     {disabled,    "4+8"    },
  738.         /* [13] */    {194, 60, 210, 80},            StaticText     {disabled,    "4"        },
  739.         /* [14] */    {208, 370, 228, 428},        Button             {    enabled,    "Reset"    },
  740.     }
  741. };
  742.  
  743. // non-zero min forces 3D look
  744. // non-zero max forces 24 hour setting
  745.  
  746. resource 'CNTL' (1321, purgeable) {
  747.     {47, 90, 67, 263},            0,    visible,    only24,        ctl3D,    
  748.     16*dateTime,                        
  749.     0,    
  750.     "Both:"
  751. };
  752. resource 'CNTL' (1322, purgeable) {
  753.     {72, 90, 92, 270},            0,    visible,    0,            ctl3D,    
  754.     16*dateTime+dateOnly,        
  755.     0,                                                // refCon could be a DateTime value
  756.     "Date:"
  757. };
  758. resource 'CNTL' (1323, purgeable) {
  759.     {97, 90, 117, 200},            0,    visible,    only24,        ctl3D,    
  760.     16*dateTime+timeOnly,        
  761.     0,    
  762.     "Time:"
  763. };
  764. resource 'CNTL' (1324, purgeable) {
  765.     {122, 90, 142, 261},        0,    visible,    0,            ctl3D,    
  766.     16*dateTime+useWFont,        
  767.     0,    
  768.     "Both:"
  769. };
  770. resource 'CNTL' (1325, purgeable) {
  771.     {147, 90, 184, 270},        0,    visible,    0,            ctl3D,    
  772.     16*dateTime+useWFont+dtStack,    
  773.     0,    
  774.     "Date & Time:"
  775. };
  776. resource 'CNTL' (1326, purgeable) {
  777.     {192, 90, 229, 270},        0,    visible,    0,                0,            
  778.     16*dateTime+dtStack,        
  779.     0,    
  780.     ""
  781. };
  782.  
  783. //----------------------------------------------------------------------------
  784. // Panel 5 - HSLIDERS - begins here
  785. //----------------------------------------------------------------------------
  786. #pragma mark HSLIDERS_PANEL5
  787.  
  788. resource 'DITL' (133, "HSlider panel 5", purgeable) {
  789.     {
  790.         /* [1] */    {47,  90,  71, 211},    Control     {enabled,    1331    },
  791.         /* [2] */    {87,  90,  111, 211},    Control     {enabled,    1332    },
  792.         /* [3] */    {127, 90, 151, 211},    Control     {enabled,    1333    },
  793.         /* [4] */    {167, 90, 191, 211},    Control        {enabled,    1334    },
  794.         /* [5] */    {207, 90, 231, 211},    Control     {enabled,    1335    },
  795.         
  796.         /* [6] */    {51,  320,  67, 455},    Control     {enabled,    1336    },
  797.         /* [7] */    {91,  320,  107, 455},    Control     {enabled,    1337    },
  798.         /* [8] */    {131, 320, 147, 455},    Control     {enabled,    1338    },
  799.         /* [9] */    {171, 320, 187, 455},    Control     {enabled,    1339    },
  800.         /* [10] */    {213, 320, 227, 455},    Control        {enabled,    1340    },
  801.         
  802.         /* [11] */    {132, 220, 148, 240},    StaticText     {disabled,    "35"    },
  803.         /* [12] */    {155, 383, 168, 411},    StaticText     {disabled,    "0"    },
  804.  
  805.         /* [13] */    {51, 10, 67, 55},        StaticText     {disabled,    "Variation:"},
  806.         /* [14] */    {51, 60, 67, 80},        StaticText     {disabled,    "0"        },
  807.         /* [15] */    {91, 60, 107, 80},        StaticText     {disabled,    "1"        },
  808.         /* [16] */    {131, 60, 147, 80},        StaticText     {disabled,    "2"        },
  809.         /* [17] */    {171, 60, 187, 80},        StaticText     {disabled,    "4"        },
  810.         /* [18] */    {211, 60, 227, 80},        StaticText     {disabled,    "1+4"    },
  811.         
  812.         /* [19] */    {51, 240, 67, 285},        StaticText     {disabled,    "Variation:"},
  813.         /* [20] */    {51, 300, 67, 310},        StaticText     {disabled,    "0"        },
  814.         /* [21] */    {91, 287, 107, 310},    StaticText     {disabled,    "1+8"    },
  815.         /* [22] */    {131, 300, 147, 310},    StaticText     {disabled,    "2"        },
  816.         /* [23] */    {171, 300, 187, 310},    StaticText     {disabled,    "4"        },
  817.         /* [24] */    {211, 290, 227, 310},    StaticText     {disabled,    "2+4"    },
  818.     }
  819. };
  820.  
  821. resource 'CNTL' (1331, purgeable) {
  822.     {47,  90,  71, 211},        0,    visible,    100,    0,    
  823.     16*hSlider,                            
  824.     0,    ""
  825. };
  826. resource 'CNTL' (1332, purgeable) {
  827.     {87,  90,  111, 211},        0,    visible,    100,    0,    
  828.     16*hSlider+scaleNoFill,    
  829.     0,    ""
  830. };
  831. resource 'CNTL' (1333, purgeable) {
  832.     {127, 90, 151, 211},        0,    visible,    100,    0,    
  833.     16*hSlider+ctl3D,        
  834.     0,    ""
  835. };
  836. resource 'CNTL' (1334, purgeable) {
  837.     {167, 90, 191, 211},        0,    visible,    100,    0,    
  838.     16*hSlider+scaleGray,        
  839.     0,    ""
  840. };
  841. resource 'CNTL' (1335, purgeable) {
  842.     {207, 90, 231, 211},        0,    visible,    100,    0,    
  843.     16*hSlider+scaleNoFill+scaleGray,    
  844.     0,    ""
  845. };
  846.  
  847. resource 'CNTL' (1336, purgeable) {
  848.     {51,  320,  67, 455},        10,    visible,    100,    0,    
  849.     16*slider,                            
  850.     0,    ""
  851. };
  852. resource 'CNTL' (1337, purgeable) {
  853.     {91,  320,  107, 455},        20,    visible,    100,    0,    
  854.     16*slider+narrowScale+snapToScale,    
  855.     0,    ""
  856. };
  857. resource 'CNTL' (1338, purgeable) {
  858.     {131, 320, 147, 455},     30,    visible,    100,    0,
  859.     16*slider+narrowScale2,        
  860.     0,    ""
  861. };
  862. resource 'CNTL' (1339, purgeable) {
  863.     {171, 320, 187, 455},        40,    visible,    100,    -100,    
  864.     16*slider+filledScale,        
  865.     0,    ""
  866. };
  867. resource 'CNTL' (1340, purgeable) {
  868.     {213, 320, 227, 455},        50,    visible,    100,    -100,    
  869.     16*slider+narrowScale2+filledScale,        
  870.     0,    ""
  871. };
  872. //----------------------------------------------------------------------------
  873. // Panel 6 - VSLIDERS - begins here
  874. //----------------------------------------------------------------------------
  875. #pragma mark VSLIDERS_PANEL6
  876.  
  877. resource 'DITL' (134, "VSlider panel 6", purgeable) {
  878.     {
  879.         /* [1] */    {72,  40,  177,  82},        Control     {enabled,    1341    },
  880.         /* [2] */    {72,  90,  177,  132},        Control     {enabled,    1342    },
  881.         /* [3] */    {72,  140,  213,  182},        Control     {enabled,    1343    },
  882.         /* [4] */    {72,  190,  213,  232},        Control     {enabled,    1344    },
  883.         /* [5] */    {72,  240,  177,  282},        Control     {enabled,    1345    },
  884.         
  885.         /* [6] */    {72,  310,  213,  326},        Control     {enabled,    1346    },
  886.         /* [7] */    {72,  350,  213,  366},        Control     {enabled,    1347    },
  887.         /* [8] */    {72,  390,  213,  406},        Control     {enabled,    1348    },
  888.         /* [9] */    {72,  432,  213,  446},        Control     {enabled,    1349    },
  889.         
  890.         /* [10] */    {182, 264,  198,  290},     StaticText     {disabled,    "0"        },
  891.     
  892.         /* [11] */    {51, 10, 67, 55},            StaticText     {disabled,    "Variation:"},
  893.         /* [12] */    {51, 66, 67, 80},            StaticText     {disabled,    "0"        },
  894.         /* [13] */    {51, 116, 67, 130},            StaticText     {disabled,    "1"        },
  895.         /* [14] */    {51, 166, 67, 180},            StaticText     {disabled,    "2"        },
  896.         /* [15] */    {51, 216, 67, 230},            StaticText     {disabled,    "4"        },
  897.         /* [16] */    {51, 260, 67, 300},            StaticText     {disabled,    "4+8"    },
  898.         
  899.         /* [17] */    {51, 314, 67, 328},            StaticText     {disabled,    "0"        },
  900.         /* [18] */    {51, 348, 67, 374},            StaticText     {disabled,    "1+4"    },
  901.         /* [19] */    {51, 394, 67, 408},            StaticText     {disabled,    "2"        },
  902.         /* [20] */    {51, 430, 67, 454},            StaticText     {disabled,    "2+4"    }
  903.     }
  904. };
  905.  
  906. resource 'CNTL' (1341, purgeable) {
  907.     {72,  40,  177,  82},    0,    visible,    0,    0,    
  908.     16*vSlider,                            
  909.     0,    ""
  910. };
  911. resource 'CNTL' (1342, purgeable) {
  912.     {72,  90,  177,  132},    0,    visible,    0,    0,    
  913.     16*vSlider+scaleNoFill,    
  914.     0,    ""
  915. };
  916. resource 'CNTL' (1343, purgeable) {
  917.     {72,  140,  213,  182},    0,    visible,    0,    0,    
  918.     16*vSlider+ctl3D,    
  919.     10,    ""                                            // refCon = number of sections    
  920. };
  921. resource 'CNTL' (1344, purgeable) {
  922.     {72,  190,  213,  232},    0,    visible,    0,    0,    
  923.     16*vSlider+thumbNoSnap,    
  924.     10,    ""                                            // refCon = number of sections    
  925. };
  926. resource 'CNTL' (1345, purgeable) {
  927.     {72,  240,  177,  282},    0,    visible,    0,    0,    
  928.     16*vSlider+thumbNoSnap+scaleBlank,    
  929.     0,    ""
  930. };
  931.  
  932. resource 'CNTL' (1346, purgeable) {
  933.     {72,  310,  213,  326},    0,    visible,    100,    0,    
  934.     16*slider,                            
  935.     0,    
  936.     ""
  937. };
  938. resource 'CNTL' (1347, purgeable) {
  939.     {72,  350,  213,  366},    0,    visible,    100,    0,    
  940.     16*slider+narrowScale+4,                            
  941.     0,    
  942.     ""
  943. };
  944. resource 'CNTL' (1348, purgeable) {
  945.     {72,  390,  213,  406},    0,    visible,    100,    0,    
  946.     16*slider+narrowScale2,                            
  947.     0,    
  948.     ""
  949. };
  950. resource 'CNTL' (1349, purgeable) {
  951.     {72,  432,  213,  446},    0,    visible,    100,    0,    
  952.     16*slider+narrowScale2+filledScale,                            
  953.     0,    
  954.     ""
  955. };
  956. //----------------------------------------------------------------------------
  957. // Panel 7 - PROGBARS - begins here
  958. //----------------------------------------------------------------------------
  959. #pragma mark PROGBARS_PANEL7
  960.  
  961. resource 'DITL' (135, "Progress bar panel 7", purgeable) {
  962.     {
  963.         /* [1] */    {52, 90, 66, 302},            Control     {    enabled,    1352    },
  964.         /* [2] */    {72, 90, 90, 302},            Control     {    enabled,    1353    },
  965.         /* [3] */    {96, 90, 110, 302},            Control     {    enabled,    1354    },
  966.         /* [4] */    {116, 90, 219, 104},        Control     {    enabled,    1355    },
  967.         /* [5] */    {116, 130, 219, 148},        Control     {    enabled,    1356    },
  968.         /* [6] */    {116, 170, 219, 228},        Control     {    enabled,    1357    },
  969.         /* [7] */    {116, 250, 219, 264},        Control     {    enabled,    1358    },
  970.         /* [8] */    {116, 290, 219, 308},        Control     {    enabled,    1359    },
  971.         /* [9] */    {72, 320, 88, 425},            Control     {    enabled,    1360    },
  972.         /* [10] */    {72, 431, 89, 458},            Control     {    enabled,    1361    },
  973.         
  974.         /* [11] */    {51, 10, 67, 55},            StaticText     {    disabled,    "Variation:"},
  975.         /* [12] */    {51, 60, 67, 80},            StaticText     {    disabled,    "0"        },
  976.         /* [13] */    {72, 60, 88, 80},            StaticText     {    disabled,    "2"        },
  977.         /* [14] */    {96, 60, 108, 80},            StaticText     {    disabled,    "4"        },
  978.         /* [15] */    {222, 10, 238, 55},            StaticText     {    disabled,    "Variation:"},
  979.         /* [16] */    {222, 92, 238, 102},        StaticText     {    disabled,    "1"        },
  980.         /* [17] */    {222, 128, 238, 148},        StaticText     {    disabled,    "1+2"    },
  981.         /* [18] */    {222, 188, 238, 208},        StaticText     {    disabled,    "1+2"    },
  982.         /* [19] */    {222, 248, 238, 280},        StaticText     {    disabled,    "1+4"    },
  983.         /* [20] */    {222, 282, 238, 320},        StaticText     {    disabled,    "1+2+4"    },
  984.     }
  985. };
  986.  
  987. resource 'CNTL' (1352, purgeable) {
  988.     {52, 90, 66, 302},        5,    visible,    50,        0,    
  989.     16*progBar,                        
  990.     0,    ""
  991. };
  992. resource 'CNTL' (1353, purgeable) {
  993.     {72, 90, 90, 302},        0,    visible,    40,        0,    
  994.     16*progBar+roundBar,    
  995.     0,    ""
  996. };
  997. resource 'CNTL' (1354, purgeable) {
  998.     {96, 90, 110, 302},        0,    visible,    1,        0,    
  999.     16*progBar+barberPole,
  1000.     0,    ""
  1001. };
  1002. resource 'CNTL' (1355, purgeable) {
  1003.     {116, 90, 219, 104},    5,    visible,    100,    0,    
  1004.     16*progBar+vertBar,        
  1005.     0,    ""
  1006. };
  1007. resource 'CNTL' (1356, purgeable) {
  1008.     {116, 130, 219, 149},    5,    visible,    200,    0,    
  1009.     16*progBar+vertBar+roundBar,        
  1010.     0,    ""
  1011. };
  1012. resource 'CNTL' (1357, purgeable) {
  1013.     {116, 170, 219, 228},    5,    visible,    150,    0,    
  1014.     16*progBar+vertBar+roundBar,        
  1015.     0,    ""
  1016. };
  1017. resource 'CNTL' (1358, purgeable) {
  1018.     {116, 250, 219, 264},    1,    visible,    1,        0,    
  1019.     16*progBar+vertBar+barberPole,        
  1020.     0,    ""
  1021. };
  1022. resource 'CNTL' (1359, purgeable) {
  1023.     {116, 290, 219, 308},    1,    visible,    1,        0,    
  1024.     16*progBar+vertBar+roundBar+barberPole,    
  1025.     0,    ""
  1026. };
  1027. resource 'CNTL' (1360, purgeable) {
  1028.     {72, 320, 90, 427},    0,    visible,    100,        0,    
  1029.     16*progBar,                    
  1030.     0,    ""
  1031. };
  1032. resource 'CNTL' (1361, purgeable) {
  1033.     {72, 431, 89, 458},    0,    visible,    100,        0,    
  1034.     16*spinner+bigArrows+ctl3D+horizArrows,            
  1035.     5,                                            // refCon = increment    
  1036.     ""
  1037. };
  1038.  
  1039. resource 'cctb' (1356, purgeable) {
  1040.     {
  1041.         cFillPatColor, 65535, 0, 0,                // red bar
  1042.         cTingeLight, 65535, 65535, 65535        // white background
  1043.     }
  1044. };
  1045.  
  1046. resource 'cctb' (1355, purgeable) {
  1047.     {
  1048.         cFillPatColor, 0, 0, 65535,                // blue bar
  1049.         cTingeLight, 52428, 65535, 65535        // lt blue background
  1050.     }
  1051. };
  1052.  
  1053. resource 'cctb' (1358, purgeable) {
  1054.     {
  1055.         cFillPatColor, 65535, 0, 0,                // red bar
  1056.         cTingeLight, 65535, 65535, 65535        // white background
  1057.     }
  1058. };
  1059.  
  1060. //----------------------------------------------------------------------------
  1061. // Panel 8 - POPUPEXT - begins here
  1062. //----------------------------------------------------------------------------
  1063. #pragma mark POPUPEXT_PANEL8
  1064.  
  1065. resource 'DITL' (136, "Popup ext. panel 8", purgeable) {
  1066.     {
  1067.         /* [1] */    {50, 10, 78, 350},        Control     {enabled,    1370    },
  1068.         /* [2] */    {85, 10, 108, 185},        Control     {enabled,    1371    },
  1069.         /* [3] */    {118, 10, 141, 185},    Control     {enabled,    1372    },
  1070.         /* [4] */    {151, 10, 174, 165},    Control     {enabled,    1373    },
  1071.         /* [5] */    {192, 10, 232, 177},    Control     {enabled,    1374    },
  1072.         /* [6] */    {192, 197, 232, 224},    Control     {enabled,    1375    },
  1073.         /* [7] */    {85, 185, 108, 450},    Control     {enabled,    1376    },
  1074.         /* [8] */    {118, 185, 141, 450},    Control     {enabled,    1377    },
  1075.         /* [9] */    {151, 315, 205, 369},    Control     {enabled,    1378    },
  1076.     }
  1077. };
  1078.  
  1079. // extensions to CDEF 63 - special values in controlMax field
  1080.  
  1081. resource 'CNTL' (1370, purgeable) {
  1082.     {50, 10, 78, 350},            
  1083.     popupTitleRightJust,    
  1084.     visible,    
  1085.     popupNoTitle+popupNoMark+130,        
  1086.     300,    
  1087.     16*popUp,        
  1088.     0,    
  1089.     "popupNoMark:"
  1090. };
  1091.         
  1092. resource 'CNTL' (1371, purgeable) {
  1093.     {85, 10, 108, 185},        
  1094.     popupTitleRightJust,    
  1095.     visible,    
  1096.     popupSymbolOnly+130,    
  1097.     301,
  1098.     16*popUp,        
  1099.     0,    
  1100.     "popupSymbolOnly:"
  1101. };
  1102. resource 'CNTL' (1372, purgeable) {
  1103.     {118, 10, 141, 185},        
  1104.     popupTitleRightJust,    
  1105.     visible,    
  1106.     popupNoSymbol+130,        
  1107.     302,        
  1108.     16*popUp,        
  1109.     0,    
  1110.     "popupNoSymbol:"
  1111. };
  1112. resource 'CNTL' (1373, purgeable) {
  1113.     {151, 10, 174, 165},        
  1114.     popupTitleRightJust,    
  1115.     visible,    
  1116.     popupCenterText+130,    
  1117.     303,
  1118.     16*popUp,        
  1119.     0,    
  1120.     "popupCenterText:"
  1121. };
  1122. resource 'CNTL' (1374, purgeable) {
  1123.     {192, 10, 232, 177},        
  1124.     popupTitleRightJust,    
  1125.     visible,    
  1126.     popupIconOnly+130,        
  1127.     304,    
  1128.     16*popUp,        
  1129.     0,    
  1130.     "popupIconOnly:"
  1131. };
  1132. resource 'CNTL' (1375, purgeable) {
  1133.     {192, 197, 232, 224},        
  1134.     0,    
  1135.     visible,    
  1136.     popupIconOnly,        
  1137.     305,    
  1138.     16*popUp,        
  1139.     0,    
  1140.     ""
  1141. };
  1142. resource 'CNTL' (1376, purgeable) {
  1143.     {85, 185, 108, 450},        
  1144.     popupTitleRightJust,    
  1145.     visible,    
  1146.     popupBlackSymbol+130,        
  1147.     258,    
  1148.     16*popUp+popupFixedWidth + ctl3D,        
  1149.     0,    
  1150.     "popupBlackSymbol:"
  1151. };
  1152. resource 'CNTL' (1377, purgeable) {
  1153.     {118, 185, 141, 450},        
  1154.     popupTitleRightJust,    
  1155.     visible,    
  1156.     popupInsetFrame+130,        
  1157.     306,        
  1158.     16*popUp+ctl3D+popupFixedWidth,        
  1159.     0,    
  1160.     "popupInsetFrame:"
  1161. };
  1162. resource 'CNTL' (1378, purgeable) {
  1163.     {151, 315, 205, 369},        
  1164.     0,    
  1165.     visible,    
  1166.     popupIconOnly+popupInsetFrame,        
  1167.     307,    
  1168.     16*popUp,        
  1169.     0,    
  1170.     ""
  1171. };
  1172.  
  1173. resource 'MENU' (300) {
  1174.     300, textMenuProc,    allEnabled,    enabled,    "popupNoMark",
  1175.     {
  1176.         /* [1] */    "Folder 2",     1,    "\0x1E", noMark, plain,
  1177.         /* [2] */    "Folder 1",     1,    "\0x1E", noMark, plain,
  1178.         /* [3] */    "Macintosh HD", 2,    "\0x1E", noMark, plain,
  1179.         /* [3] */    "Desktop",         3,    "\0x1E", noMark, plain
  1180.     }
  1181. };
  1182. resource 'MENU' (301) {
  1183.     301, textMenuProc, allEnabled, enabled, "popupSymbolOnly",
  1184.     {
  1185.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1186.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1187.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1188.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1189.     }
  1190. };
  1191. resource 'MENU' (302) {
  1192.     302, textMenuProc, allEnabled, enabled, "popupNoSymbol",
  1193.     {
  1194.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1195.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1196.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1197.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1198.     }
  1199. };
  1200. resource 'MENU' (303) {
  1201.     303, textMenuProc, allEnabled, enabled, "popupCenterText",
  1202.     {
  1203.         /* [1] */    "1", noIcon, noKey, noMark, plain,
  1204.         /* [2] */    "2", noIcon, noKey, noMark, plain,
  1205.         /* [3] */    "3", noIcon, noKey, noMark, plain,
  1206.         /* [4] */    "4", noIcon, noKey, noMark, plain
  1207.     }
  1208. };
  1209.  
  1210. // N.B. - the following 2 menus, have a space for each item string.
  1211.  
  1212. resource 'MENU' (304) {
  1213.     304, textMenuProc,    allEnabled,    enabled,    "popupIconOnly",
  1214.     {
  1215.         /* [1] */    " ", 47,    noKey, noMark, plain,
  1216.         /* [2] */    " ", 7,        noKey, noMark, plain,
  1217.         /* [3] */    " ", 48,    noKey, noMark, plain,
  1218.         /* [4] */    " ", 49,    noKey, noMark, plain,
  1219.         /* [5] */    " ", 50,    noKey, noMark, plain,
  1220.         /* [6] */    " ", 51,    noKey, noMark, plain,
  1221.         /* [7] */    " ", 52,    noKey, noMark, plain
  1222.     }
  1223. };
  1224. resource 'MENU' (305) {
  1225.     305, textMenuProc,    allEnabled,    enabled,    "popupIconOnly",
  1226.     {
  1227.         /* [1] */    " ", 1,    "\0x1E", noMark, plain,
  1228.         /* [2] */    " ", 2,    "\0x1E", noMark, plain,
  1229.         /* [3] */    " ", 3,    "\0x1E", noMark, plain,
  1230.         /* [3] */    " ", 4,    "\0x1E", noMark, plain
  1231.     }
  1232. };
  1233.  
  1234. resource 'MENU' (306) {
  1235.     306, textMenuProc, allEnabled, enabled, "popupInsetFrame",
  1236.     {
  1237.         /* [1] */    "This popup is", noIcon, noKey, noMark, plain,
  1238.         /* [2] */    "inset for a", noIcon, noKey, noMark, plain,
  1239.         /* [3] */    "3D effect", noIcon, noKey, noMark, plain
  1240.     }
  1241. };
  1242. resource 'MENU' (307) {
  1243.     307, textMenuProc, allEnabled, enabled, "popupInsetFrame+popupIconOnly",
  1244.     {
  1245.         /* [1] */ " ",    46,    noKey, noMark, plain,
  1246.         /* [2] */ " ",    45, noKey, noMark, plain,
  1247.         /* [3] */ " ",     44, noKey, noMark, plain,
  1248.         /* [4] */ " ",    5,    noKey, noMark, plain,
  1249.         /* [5] */ " ",    5,    "\0x1D", noMark, plain,
  1250.         /* [6] */ " ",    6,    "\0x1E", noMark, plain,
  1251.         /* [7] */ " ",    47,    "\0x1D", noMark, plain,
  1252.     }
  1253. };
  1254. resource 'ALRT' (256, "Need DITLExt", purgeable) {
  1255.     {120, 70, 224, 442},
  1256.     256,                                        /* DITL id */
  1257.     {
  1258.         OK, visible, sound1;    /* Stage 4 */
  1259.         OK, visible, sound1;    /* Stage 3 */
  1260.         OK, visible, sound1;    /* Stage 2 */
  1261.         OK, visible, sound1     /* Stage 1 */
  1262.     },
  1263. #if SystemSevenOrLater
  1264.     alertPositionParentWindowScreen
  1265. #endif
  1266. };
  1267.  
  1268. resource 'DITL' (256, "Need DITLExt", purgeable) {
  1269.   {
  1270.     /* [1] */ {76, 292, 96, 360},            Button        { enabled , "OK" },
  1271.     /* [2] */ {16,  64, 48, 328},            StaticText    { disabled ,
  1272.                 "This demo requires System 7 or System 6 with CommToolbox." }
  1273.   }
  1274. };
  1275.